package com.qdu.program.mapper;

import com.qdu.program.entity.Read;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReadMapper {
    int deleteByPrimaryKey(Integer readId);

    int deleteByUserNumber(String userNumber);

    int insert(Read record);

    int insertSelective(Read record);

    Read selectByPrimaryKey(Integer readId);

    int updateByPrimaryKeySelective(Read record);

    int updateByPrimaryKey(Read record);

    Read selectOneRead();

    List<Read> selectTenRead();

    List<Read> selectReadByUserNumber(String userNumber);

    List<Read> getAllRead();
}